<template>
  <div id="app">
    <router-view></router-view>
    <van-tabbar v-model="active" active-color="red" inactive-color="#000">
      <van-tabbar-item icon="home-o" to="/HomePage">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/Classification">分类</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" to="/ShoppingCart">购物车</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/Personal">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
* {
  padding: 0;
  margin: 0;
}
#h1 {
  color: aliceblue;
}
.el-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2c3e50;
  .el-menu {
    background: #2c3e50;
  }
}
</style>
<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
